package com.fruit.service.order;

import com.fruit.pojo.queue.QueueParams;


/**
 * 多级分润队列
 * fruit-farm-infors-sdk
 *
 * @author shibeilei
 * @version 2018.04.10 15:32
 *
 */
public interface QueueHandel {

    public static interface OnQueueListener{
        public void onSynQueueArrived(QueueParams params);  
        public void onAsynQueueArrived(QueueParams params); 
    }  
	public void start(OnQueueListener listener);
	
	public void add(QueueParams params, boolean isAsyn);
	
	public boolean remove(QueueParams params, boolean isAsyn);
	
	public int getSize(boolean isAsyn);
}
